package cn.tedu.tmall.admin.content.serivce;

import cn.tedu.tmall.admin.content.pojo.param.ArticleAddParam;
import cn.tedu.tmall.admin.content.pojo.vo.ArticleItemListVO;
import cn.tedu.tmall.admin.content.pojo.vo.ArticleVO;
import cn.tedu.tmall.common.pojo.PageData;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * 文章相关业务层
 */
@Transactional
public interface IArticleService {
    /**
     * 增加文章
     * @param articleAddParam ArticleAddParam
     */
    @Transactional //推荐加在接口的方法上
    void addArticle(ArticleAddParam articleAddParam);


  


    ArticleVO detail(Long articleId);


    PageData<ArticleItemListVO> listArticle(Long categoryId, Integer pageNum, Integer pageSize);
}
